from odoo import fields, models, api
from odoo.exceptions import UserError

class RPEmail(models.Model):
    _name = 'rp.email'
    _description = "邮箱配置"
    
    name = fields.Char(string='名称', required=True)
    send_mail = fields.Char(string='发件邮箱', required=True)
    password = fields.Char(string='邮箱密码', required=True)
    host = fields.Char(string='邮件服务器地址', required=True)
    subject = fields.Char(string='主题', required=True)
    template = fields.Html(string='模版')
    act_on = fields.Char(string='作用于', required=True)
    